<?php
class indexAction extends frontAction{
	public function execute(){
		$userID = $this->getGetParam('id');
		$viewDao = new DaoInterview();
		//个人专访
		$view = $viewDao->getOne(" userID='$userID' and type='".service_type::INTERVIEW."'");
		//个人作品
		$pDao = new DaoProduct();
		$products = $pDao->getList(" userID='$userID' order by sortID asc",4);
		$user = service_user::getByID($userID);

		//设计人生
		$lifes = $viewDao->getList("userID='$userID' and type='".service_type::DESIGNLIFE."'",4);
		//个人动态
		$news = $viewDao->getList("userID='$userID' and type='".service_type::UNEWS."'",4);
		
		$cache = new Cache_request();
		$cache->set("userID",$userID);
		$this->assign('view',$view);
		$this->assign('products',$products);
		$this->assign('lifes',$lifes);
		$this->assign('news',$news);
		$this->assign('user',$user);
	}
}
?>
